#ifndef EASYUNZIP_H
#define EASYUNZIP_H
#pragma once

#ifdef EASYZIP_EXPORTS
#define SHAREDEASYZIP_EXPORTS _declspec(dllexport)
#else
#define SHAREDEASYZIP_EXPORTS _declspec(dllimport)
#endif // EASYZIP_EXPORTS

#include <string>
#include "zlib\unzip.h"
#include "zlib\zip.h"

class SHAREDEASYZIP_EXPORTS EasyUnZip
{
public:
    EasyUnZip();
    ~EasyUnZip();
    bool UnzipDir(const std::string& unpackPath, const std::string& zipFilePath);
private:
    bool MakeDir(const std::string& path);
    int UnzipOneFile(unzFile uf, const unz_file_info& info, const std::string& path);
};

#endif // EASYUNZIP_H